Example

greeting=(visitor=="PRES")?"Dear President ":"Dear "

If the variable visitor is equal to PRES, then put the string "Dear President " in the variable named greeting. If the variable visitor is not equal to PRES, then put the string "Dear " into the variable named greeting

#Title: Conditional Operator
#Element: 240: Conditional Operator
#Article: 171: Conditional Statements